{layout name="win" /}
<div id="actionbar" class="fn-clear">
    <div class="fn-left">
        <button class="button button-blue bar" url="{:url('user/select')}" msg="您确认要选择当前用户为代理吗？"><i class="iconfont icon-xiangxia5"></i>确认选择代理</button> 
    </div>
    <div class="fn-right">
        <form id="form" action="{:url('user/select')}" method="get">
            <input placeholder="请输入用户完整手机号" class="input w200" type="text" name="keyword" value="{$keyword}" /><input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
</div>
<table class="table">
    <thead>
        <tr>
            <th class="w80 fn-tac"><input type="checkbox" onclick="CheckAll(this)"></th>
            <th class="w100">手机号</th>
            <th class="w60 fn-tac"></th>
            <th>微信昵称</th>
            <th class="w140">登录IP</th>
            <th class="w140">登录时间</th>
            <th class="w140">创建时间</th>
            <th class="w70 fn-tac">状态</th>
        </tr>
    </thead>
    <tbody>
        {foreach $list as $vo}
        <tr>
            <td class="fn-tac"><input name="ids[]" type="checkbox" value="{$vo.id}"></td>
            <td>{$vo.phone_uid}</td>
            <td><img src="{$vo['face']}" class="w40" /></td>
            <td>{$vo.nickname}</td>
            <td>{$vo.login_ip}</td>
            <td>{$vo->login_time|date='Y-m-d H:i'}</td>
            <td>{$vo->create_time|date='Y-m-d H:i'}</td>
            <td class="fn-tac li">{if $vo.is_lock}<span class="badge bg-red">锁定</span>{else}<span class="badge">正常</span>{/if}</td>
        </tr>
        {/foreach}
    </tbody>
</table>
<div class="page">{$list|raw}</div>
<script type="text/javascript">
    Do('base','layer',function(){
        $(".bar").click(function() {
            var url = $(this).attr('url');
            var msg = $(this).attr('msg');
            tools_submit({action:url,msg:msg})
        })
    })
</script>